package com.yjs.app.trade.service.mapper.sys;

import java.util.List;
import java.util.Map;

import com.yjs.app.trade.core.base.mybatis.annotation.MyBatisRepository;
import com.yjs.app.trade.entity.bean.PassportSearch;

/**
 * 系统用户repository
 * 
 * @author hikaru
 * @since 1.0.0
 */
@MyBatisRepository
public interface MessagePushMapper {
	/**
	 * 保存推送消息
	 * @param list
	 * @return
	 */
	public int saveMessagePush(List<Map<String, Object>> list);
	
	/**
	 * 推送消息分页查询
	 * @param id
	 * @return
	 */
	public List<Map<String, Object>> findMessageByPassportId(PassportSearch passportSearch);
	
	/**
	 * 统计未读消息数量
	 * @param id
	 * @return
	 */
	public Integer countUnReadMessageNumber(String id);
	
	/**
	 * 更改消息是否已读
	 * @param map
	 * @return
	 */
	public int updataIsCheck(Map<String, Object> map);
	
	/**
	 * 查询是否推送过此信息
	 * @param map
	 * @return
	 */
	public int checkTagIsPush(String tagId, int type);
	
	
}